<%-- 
    Document   : career
    Created on : Jul 3, 2012, 1:35:25 PM
    Author     : VANANH
--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@taglib prefix="rich" uri="http://richfaces.org/rich" %>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        
        <!-- -->
        <link rel="stylesheet" type="text/css" href="../css/popup.css"/>  
        <script type="text/javascript" language="javascript" src="../scripts/jQuery/kapi.js"></script>
    </head>
    <body>
        <f:loadBundle basename="#{environmentSession.localizationSource}" var="locale"/>
        <f:view>
            <a4j:form>

                <div class="action">
                    <a href="editN050.jsp?action=addN050&table=setting&height=236px&width=405px" class="fancybox add_new" id="fancybox">
                        <img src="../images/add_tab.png" alt="add" title="add" /><label> <h:outputText value="Quan hệ"/> </label>
                    </a>
                    <%--    <div class="search"> <jsp:include page="../../common/search.jsp"/></div> --%>
                </div> 
                 <h:panelGroup id="listC350">
                    <div style="width: 100%;float: left;margin-top: 5px;">
                        <rich:dataTable rowClasses="white,blue" value="#{n050Controller.listALlN050}" var="item" rowKeyVar="row">
                            <rich:column>
                                <f:facet name="header">
                                    <h:outputText value="STT"/>
                                </f:facet>
                                <div style="float: left;">
                                    <h:outputText value="#{row+1}"/>
                                </div>
                            </rich:column>
                            <rich:column>
                                <f:facet name="header">
                                    <h:outputText value="QUAN HỆ"/>
                                </f:facet>
                                <div style="float: left;">
                                 <h:outputText value="#{item.nv001}"/>
                                </div>
                            </rich:column>
                            <rich:column>
                                <f:facet name="header">
                                    <h:outputText value="MÔ TẢ"/>
                                </f:facet>
                                <div style="float: left;">
                                   <h:outputText value=""/>
                                </div>
                            </rich:column>
                            <rich:column>
                                <f:facet name="header">
                                    <h:outputText value="ACTION"/>
                                </f:facet>
                                <div style="float: left;text-align: center;width: 100%;">
                                    <h:outputLink  value="editN050.jsp?action=editN050&pn050=#{item.pn050}&height=300px&width=500px" styleClass="fancybox">
                                        <img src="../images/edit.png" alt="edit" title="edit"/>
                                    </h:outputLink>
                                    <h:outputLink  value="delete.jsp?id=#{item.pn050}&flag=N050&height=150px&width=300px" styleClass="fancybox">
                                        <img src="../images/delete_1.png" alt="delete"  title="delete" />
                                    </h:outputLink>
                                    <h:inputHidden value="#{n050Controller.PN050}" id="PN050"/>
                                </div>
                            </rich:column>
                        </rich:dataTable>
                    </div>
                </h:panelGroup>  
               <%--     <a4j:repeat value="#{n050Controller.listALlN050}" var="item"> 
                    <div class="contact">

                        <div class="contact-content">
                            <div class="content-personal">

                                <div class="items_n550" style="width: 300px !important">
                                    <label> &nbsp </label>
                                    <span><h:outputText value="#{item.nv001}"/></span> 
                                </div>
                               
                                <div class="items-action-career">

                                    <h:outputLink  value="editN050.jsp?action=editN050&pn050=#{item.pn050}&height=300px&width=500px" styleClass="fancybox">
                                        <img src="../images/edit.png" alt="edit" title="edit"/>
                                    </h:outputLink>
                                    <h:outputLink  value="delete.jsp?id=#{item.pn050}&flag=N050&height=150px&width=300px" styleClass="fancybox">
                                        <img src="../images/delete_1.png" alt="delete"  title="delete" />
                                    </h:outputLink>
                                    <h:inputHidden value="#{n050Controller.PN050}" id="PN050"/>
                                </div>
                               
                            </div>
                        </div>

                    </div>
                </a4j:repeat> --%>

            </a4j:form>
        </f:view>
    </body>
</html>
<script type="text/javascript">
$j(document).ready(function(){
    yhight = ($j('.popup').height()-90)+"px" ;
    $j('.main_content').css('height',yhight );
    $j('.popup-content').css('height',yhight );
});
</script>
